import request from '/@/utils/request';
export const articlePage = (data?: Object) => {
	return request({
		url: '/admin/V1/article/page',
		method: 'post',
		data: data,
	});
};

export const updatePublishStatus = (data?: Object) => {
	return request({
		url: '/admin/V1/article/updatePublishStatus',
		method: 'post',
		data,
	});
};
export const articleDetail = (data?: Object) => {
	return request({
		url: '/admin/V1/article/getArticleDetail',
		method: 'post',
		data,
	});
};
export const getArticleReportPage = (data?: Object) => {
	return request({
		url: '/admin/V1/article/getArticleReportPage',
		method: 'post',
		data,
	});
};

export const videoDetail = (data?: Object) => {
	return request({
		url: '/admin/V1/video/getVideoDetail',
		method: 'post',
		data,
	});
};

export const navList = (data?: Object) => {
	return request({
		url: '/admin/V1/admin/home/nav/list',
		method: 'post',
		data,
	});
};
export const videoPage = (data?: Object) => {
	return request({
		url: '/admin/V1/video/page',
		method: 'post',
		data,
	});
};
export const getAuthorWorksPage = (data?: Object) => {
	//获取作者的所有作品
	return request({
		url: '/admin/V1/admin/userAuditSummary/getAuthorWorksPage',
		method: 'post',
		data,
	});
};
export const videoUpdatePublishStatus = (data?: Object) => {
	return request({
		url: '/admin/V1/video/updatePublishStatus',
		method: 'post',
		data,
	});
};
export const getVideoReportPage = (data?: Object) => {
	return request({
		url: '/admin/V1/video/getVideoReportPage',
		method: 'post',
		data,
	});
};

export const dramaPage = (data?: Object) => {
	return request({
		url: '/admin/V1/drama/page',
		method: 'post',
		data,
	});
};
export const dramaUpdatePublishStatus = (data?: Object) => {
	return request({
		url: '/admin/V1/drama/updatePublishStatus',
		method: 'post',
		data,
	});
};

export const dramaGtDramaReportPage = (data?: Object) => {
	return request({
		url: '/admin/V1/drama/getDramaReportPage',
		method: 'post',
		data,
	});
};

export const getDramaTags = (data?: Object) => {
	return request({
		url: '/admin/V1/drama/getDramaTags',
		method: 'post',
		data,
	});
};
export const getDramaEpisodeDetail = (data?: Object) => {//剧集详情
	return request({
		url: '/admin/V1/drama/getDramaEpisodeDetail',
		method: 'post',
		data,
	});
};
export const getDramaDetail = (data?: Object) => {//剧集详情
	return request({
		url: '/admin/V1/drama/getDramaDetail',
		method: 'post',
		data,
	});
};
export const getDramaEpisodeCountList = (data?: Object) => {//剧集列表
	return request({
		url: '/admin/V1/drama/getDramaEpisodeCountList',
		method: 'post',
		data,
	});
};
export const reportList = (data?: Object) => {
	return request({
		url: '/admin/V1/admin/report/list',
		method: 'post',
		data,
	});
};
export const reportBatchAudit = (data?: Object) => {
	return request({
		url: '/admin/V1/admin/report/batchAudit',
		method: 'post',
		data,
	});
};

export const appUserAdminPage = (data?: Object) => {
	return request({
		url: '/admin/V1/admin/appUserAdmin/page',
		method: 'post',
		data,
	});
};

export const getAppUserInfo = (data?: Object) => {
	return request({
		url: '/admin/V1/admin/appUserAdmin/getAppUserInfo',
		method: 'post',
		data,
	});
};
export const getUserFollowList = (data?: Object) => {
	return request({
		url: '/admin/V1/admin/appUserAdmin/getUserFollowList',
		method: 'post',
		data,
	});
};
export const banUser = (data?: Object) => {
	//封禁用户

	return request({
		url: '/admin/V1/admin/appUserAdmin/banUser',
		method: 'post',
		data,
	});
};
export const unbanUser = (data?: Object) => {
	//解封用户
	return request({
		url: '/admin/V1/admin/appUserAdmin/unbanUser',
		method: 'post',
		data,
	});
};
export const getPreviewUserPageByUserId = (data?: Object) => {
	//获取用户的浏览记录
	return request({
		url: '/admin/V1/admin/appUserAdmin/getPreviewUserPageByUserId',
		method: 'post',
		data,
	});
};
export const getUserReportListPage = (data?: Object) => {
	//举报列表
	return request({
		url: '/admin/V1/admin/appUserAdmin/getUserReportListPage',
		method: 'post',
		data,
	});
};
export const getUserHistory = (data?: Object) => {
	//举报列表
	return request({
		url: '/admin/V1/admin/appUserAdmin/getUserHistory',
		method: 'post',
		data,
	});
};
export const getCommentReportPage = (data?: Object) => {//分页查询评论举报记录
	return request({
		url: '/admin/V1/admin/report/getCommentReportPage',
		method: 'post',
		data,
	});
};
export const getCommentDetail = (data?: Object) => {//获取评论详情
	return request({
		url: '/admin/V1/admin/report/getCommentDetail',
		method: 'post',
		data,
	});
};

export const getCommentReplyDetail = (data?: Object) => {//获取评论回复详情
	return request({
		url: '/admin/V1/admin/report/getCommentReplyDetail',
		method: 'post',
		data,
	});
};

export const commentPage = (data?: Object) => {//获取评论回复详情
	return request({
		url: '/admin/V1/comment/page',
		method: 'post',
		data,
	});
};
export const commentReplyPage = (data?: Object) => {//获取评论回复详情
	return request({
		url: '/admin/V1/comment/reply/page',
		method: 'post',
		data,
	});
};
export const dictItemPage = (data?: Object) => {//获取评论回复详情
	return request({
		url: '/admin/V1/dict/item/page',
		method: 'post',
		data,
	});
};
export const commentDelete = (data?: Object) => {//获取评论回复详情
	return request({
		url: '/admin/V1/comment/delete',
		method: 'post',
		data,
	});
};
export const commentReplyDelete = (data?: Object) => {//获取评论回复详情
	return request({
		url: '/admin/V1/comment/reply/delete',
		method: 'post',
		data,
	});
};



